package com.maxchaintech.integral.service.impl;

import java.util.List;

import com.maxchaintech.integral.mapper.PointsRedemptionOrderDetailsMapper;
import com.maxchaintech.integral.service.IPointsRedemptionOrderDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.maxchaintech.integral.domain.PointsRedemptionOrderDetails;

/**
 * 积分兑换订单详情Service业务层处理
 * 
 * @author jyw
 * @date 2021-04-20
 */
@Service
public class PointsRedemptionOrderDetailsServiceImpl implements IPointsRedemptionOrderDetailsService
{
    @Autowired
    private PointsRedemptionOrderDetailsMapper pointsRedemptionOrderDetailsMapper;

    /**
     * 查询积分兑换订单详情
     * 
     * @param id 积分兑换订单详情ID
     * @return 积分兑换订单详情
     */
    @Override
    public PointsRedemptionOrderDetails selectPointsRedemptionOrderDetailsById(Long id)
    {
        return pointsRedemptionOrderDetailsMapper.selectPointsRedemptionOrderDetailsById(id);
    }

    /**
     * 查询积分兑换订单详情列表
     * 
     * @param pointsRedemptionOrderDetails 积分兑换订单详情
     * @return 积分兑换订单详情
     */
    @Override
    public List<PointsRedemptionOrderDetails> selectPointsRedemptionOrderDetailsList(PointsRedemptionOrderDetails pointsRedemptionOrderDetails)
    {
        return pointsRedemptionOrderDetailsMapper.selectPointsRedemptionOrderDetailsList(pointsRedemptionOrderDetails);
    }

    /**
     * 新增积分兑换订单详情
     * 
     * @param pointsRedemptionOrderDetails 积分兑换订单详情
     * @return 结果
     */
    @Override
    public int insertPointsRedemptionOrderDetails(PointsRedemptionOrderDetails pointsRedemptionOrderDetails)
    {
        return pointsRedemptionOrderDetailsMapper.insertPointsRedemptionOrderDetails(pointsRedemptionOrderDetails);
    }

    /**
     * 修改积分兑换订单详情
     * 
     * @param pointsRedemptionOrderDetails 积分兑换订单详情
     * @return 结果
     */
    @Override
    public int updatePointsRedemptionOrderDetails(PointsRedemptionOrderDetails pointsRedemptionOrderDetails)
    {
        return pointsRedemptionOrderDetailsMapper.updatePointsRedemptionOrderDetails(pointsRedemptionOrderDetails);
    }

    /**
     * 批量删除积分兑换订单详情
     * 
     * @param ids 需要删除的积分兑换订单详情ID
     * @return 结果
     */
    @Override
    public int deletePointsRedemptionOrderDetailsByIds(Long[] ids)
    {
        return pointsRedemptionOrderDetailsMapper.deletePointsRedemptionOrderDetailsByIds(ids);
    }

    /**
     * 删除积分兑换订单详情信息
     * 
     * @param id 积分兑换订单详情ID
     * @return 结果
     */
    @Override
    public int deletePointsRedemptionOrderDetailsById(Long id)
    {
        return pointsRedemptionOrderDetailsMapper.deletePointsRedemptionOrderDetailsById(id);
    }
}
